package com.bifrost.task;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.JobHandler;
import com.xxl.job.core.log.XxlJobLogger;
import org.springframework.stereotype.Component;

/**
 * Author by yanxiaobo
 * Date on 2018/6/12$.
 */
@Component
@JobHandler("reportSendTask")
public class ReportSendTask extends BaseSendTask{

    @Override
    public ReturnT<String> execute(String param) {
        XxlJobLogger.log("发送"+param+"资金报表开始");
        transactionService.sendFinanceReport(new Uploader(param));
        XxlJobLogger.log("发送"+param+"资金报表成功");
        return ReturnT.SUCCESS;
    }
}
